<!-- JSP that displays the form to add a department -->

<%@include file="header.jsp" %>
<%@include file="departmentMenu.jsp" %>
<html>

<head>
    <title><fmt:message key="title.application"/></title>

    <link rel="STYLESHEET" type="text/css" href="<%= request.getContextPath() %>/css/style.css">
</head>




<jsp:useBean id="departmentBean" class="sg.edu.nus.iss.cats.javabean.DepartmentsBean"/>
     

<h2>Add a Department</h2>
<form name="deptForm" method="post" action="<%= request.getContextPath() %>/admin/addDept?action=add">
    <table>
        <tr>
            <td valign=top>Department Id:</td>
            <td colspan="3"><input type="text" name="departmentid" size="10" value=""></td>
        </tr>

    <tr>
        <td valign=top>Manager-In-Charge:</td>
        
        <td colspan="3">
        	<select name="managerincharge" size="1">
        		<%= departmentBean.getAllManagerMenu()%>
        	</select>   
        </td>
    </tr>

    <tr>
        <td>&nbsp;</td> 
        <td colspan="2" align="left"><br></br>
            <button type="submit">
                 <img src="<%= request.getContextPath() %>/img/button_submit.gif" alt="" align="middle">
            </button>&nbsp;
            <a href="javascript:history.back();">
                <img src="<%= request.getContextPath() %>/img/button_cancel.gif" alt="" align="absmiddle" border="0"> 
            </a>  
        </td> 
    </tr>
    </table>
</form>